<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      function Two_Add(num1, num2) {
        var addition = num1 + num2;
        return addition;
      }
      function Two_Sub(num1, num2) {
        var subtract = num1 - num2;
        return subtract;
      }
      function Two_Mult(num1, num2) {
        var multiply = num1 * num2;
        return multiply;
      }
      function Two_Div(num1, num2) {
        var divided = num1 / num2;
        return divided;
      }
      var num1 = prompt("输入第一个数：") * 1;
      var num2 = prompt("输入第二个数：") * 1;
      document.write(
        num1 +
          "与" +
          num2 +
          "的和：" +
          Two_Add(num1, num2) +
          "的差：" +
          Two_Sub(num1, num2) +
          "的积：" +
          Two_Mult(num1, num2) +
          "的商：" +
          Two_Div(num1, num2)
      );
    </script>
  </body>
</html>
